package com.woniu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniu.mapper.ClassInfoMapper;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * @Classname User
 * @Description TODO
 * @Date 2025/8/5 11:05
 * @Created by pc
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private Integer id;
    private String name;
    private String password;
    private String gender;
    //@DateTimeFormat(pattern = "yyyy-MM-dd")  // 解决日期入参不能自动类型转换的问题
    @JsonFormat(pattern = "yyyy-MM-dd")  // 可以指定出参的日期类型格式
    private Date birthday;
    private Integer age;
    private ClassInfo classInfo;
}
